{include file="header.tpl" title="Ma phat"}
<form action="" method="post" target="_self" name="tongquat">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%">
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong" size="1" onchange="changevalue('hanhdong');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>
  <tr>
    <td nowrap="nowrap">{$lbl_maphat}</td>
    <td colspan="3" style="color:#FF0000"><input name="PENTYPE" id="PENTYPE" type="text" style="background:{$colormaphat}" value="{$PENTYPE}" size="20" maxlength="5" />
     *</td>
  </tr>
  <tr>
    <td>{$lbl_machinhanh}</td>
    <td colspan="3"><span style="color:#FF0000">
      <input name="BRNCODE" id="BRNCODE" type="text" style="background:{$colormaCN}" value="{$BRNCODE}" size="20" maxlength="3" />
    * </span>
      <input type="button" onclick="mywindow = window.open('chi_nhanh_id.php', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findchinhanh" id="replacement_binoculars" value="     "  /></td>
    </tr>
  <tr>
    <td>{$lbl_ten_loaiphat}</td>
    <td colspan="3"><span style="color:#FF0000">
      <input name="PENNAME" type="text" style="background:{$colortenmaphat}" value="{$PENNAME}" size="50" maxlength="50" />
    *</span></td>
    </tr>
  <tr>
    <td width="20%">{$lbl_ngayhieuluc}</td>
    <td><input type="text" value="{$datevalue}" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)" name="EFFDATE" size="20" style="background:{$colorngay}" readonly="readOnly"></td>
	<td>{$lbl_cachtinhphat}</td>
	<td><select name="ACRTYPE" size="1" style="width:150px;" >
	  
      {foreach from=$ACRTYPE key=k item=v}
	  	
	  <option value="{$k}" {if $k eq $activedorc} selected="selected" {/if} >{$v}</option>
	  
	  {/foreach}
    
	  </select>	</td>
  </tr>
  <tr>
    <td>{$lbl_sodutinhlai}</td>
    <td><select name="ACRBAL" size="1" style="width:150px;">
			 {foreach from=$ACRBAL key=k item=v}
	  	
      <option value="{$k}" {if $k eq $activeACRBAL} selected="selected" {/if} >{$v}</option>
      
	  {/foreach}
    </select>    </td>
    <td>{$lbl_cosonam}</td>
    <td><select name="YBASE" size="1" style="width:150px;" >
      
      {foreach from=$YBASE key=k item=v}
	  	
      <option value="{$k}" {if $k eq $activedorc} selected="selected" {/if} >{$v}</option>
      
	  {/foreach}
    
    </select>    </td>
  </tr>
  <tr>
    <td>{$lbl_laisuatKKH}</td>
    <td nowrap="nowrap"><input name="DRATE" type="text" style="background:{$colorLSKKH}; text-align:right;" value="{$DRATE}" size="20" maxlength="12" onBlur="formatNumber2(this,this.value,4,4);checkDecimal(this,this.value);" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"/>
      % n&#259;m <span style="color:#FF0000">*</span></td>
    <td nowrap="nowrap">{$lbl_malaisuatKKH}</td>
    <td nowrap="nowrap"><input name="DRATECD" id="DRATECD" type="text" style="background:{$colormaLSKKH}" value="{$DRATECD}" size="20" maxlength="5" />
      <span style="color:#FF0000">*</span>
      <input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=DRATECD', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat" id="replacement_binoculars" value="     "></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_sokyhantruoc}</td>
    <td><input name="TERMNO" id="TERMNO" type="text" value="{$TERMNO}" size="20" maxlength="2" onblur="checknum();fillInRows(this.value);" style="text-align:right;" onkeypress="return numberOnly(event);"/>
({$lbl_toida})</td>
    <td>{$lbl_DMAXTIME}</td>
    <td><input name="DMAXTIME" type="text" style="background:{$colorDMAXTIME}; text-align:right;" value="{$DMAXTIME}" size="20" maxlength="6" onblur="formatNumber2(this,this.value,1,4);" onkeypress="return numberOnly(event);"/></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_DMINAMT}</td>
    <td><input name="DMINAMT" type="text" style="background:{$colorDMINAMT}; text-align:right;" value="{$DMINAMT}" size="20" maxlength="20" onblur="formatNumber2(this,this.value,18,2);" onkeypress="return numberOnly(event);"/></td>
    <td>{$lbl_DMINDAY}</td>
    <td><input name="DMINDAY" type="text" style="background:{$colorDMINDAY}; text-align:right;" value="{$DMINDAY}" size="20" maxlength="3"  onkeypress="return numberOnly(event);" onkeyup="this.value = this.value.replace('.','');" /></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_DAYNOINT}</td>
    <td><input name="DAYNOINT" type="text" id="DAYNOINT" style="background:{$colorDAYNOINT}; text-align:right;" onkeypress="return numberOnly(event);" value="{$DAYNOINT}" size="20" maxlength="3" /></td>
    <td>{$lbl_Npihld }</td>
    <td><input name="NPIHLD" type="text" id="NPIHLD" style="background:{$colorNPIHLD}; text-align:right;" value="{$NPIHLD}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" /></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_RATEATEFFDT}</td>
    <td><select name="RATEATEFFDT" id="RATEATEFFDT">
    <option value=""></option>
	{foreach from=$cbo_RATEATEFFDT key=k item=v}
     <option value="{$k}" {if $k eq $RATEATEFFDT} selected="selected" {/if} >			{$k} - {$v}
     </option>
      {/foreach}
     </select></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
<tr>
<td colspan="4">

<div align="center">
<table border="0" cellspacing="1" cellpadding="0" style="width:60%;" id="tblSample">
  <thead>
  <tr>
    <th>{$lbl_stt}</th>
    <th>{$lbl_kyhan}</th>
    <th>{$lbl_makkyhan}</th>
    <th>{$lbl_laisuat}</th>
    <th>{$lbl_malaisuat}</th>
  </tr>
  </thead>
  <tbody></tbody>
</table>
</div>
{$tbldata}</td>
</tr>
<tr>
<td colspan="4">
</td>
</tr>
<tr>
<td colspan="4" align="right">

<input type="submit" name="capnhat" value="{$ten_cap_nhat}"  class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"  /></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>

<tr>
<td>
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong1" size="1" onchange="changevalue('hanhdong1');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
</table>
</form>

{$javascriptsetstyle}
{include file="footer.tpl"}
